package com.wp.design.structural.decorator.v1;

public class Test1 {
	public static void main(String[] args) {
		Battercake battercake = new Battercake();
		System.out.println(battercake.getDesc()+"价格："+battercake.cost());
		Battercake egg = new BattercakeWitheggs();
		System.out.println(egg.getDesc()+"价格："+egg.cost());
		Battercake meatandegg = new BattercakeWithsausaue();
		System.out.println(meatandegg.getDesc()+"价格："+ meatandegg.cost());
	}
}
